<?php

use Illuminate\Database\Seeder;
use App\Models\AdminUser;

class AdminUsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 超级管理员
        factory(AdminUser::class)->create([
            'name' => 'root',
            'password' => bcrypt('Zzxx1688..'),
        ]);

        // 管理员
        factory(AdminUser::class)->create([
            'name' => 'admin',
            'password' => bcrypt('1bim.com'),
        ]);

        factory(AdminUser::class, 1000)->create();
    }
}
